<?php
/**
 * Name: UserJoinProject.php
 * Created by: Chung Hoang Long
 * Created Date: 11-10-2013
 * Description: 
 */

class UserJoinProject {
	
	// ROLE constants
	public static $ALL_ROLE = 0;
	public static $OWNER_ROLE = 1;
	public static $MEMBER_ROLE = 2;
	
	// PK
	private $_ProjectPK; // int
	private $_UserPK; // int
	
	private $_Role; // int
	
	public function __construct($projectPK, $userPK, $role) {
		$this->_ProjectPK = $projectPK;
		$this->_UserPK = $userPK;
		$this->_Role = $role;
	}
	
	/**
	 * @return int
	 */
	public function getProjectPK() {
		return $this->_ProjectPK;
	}
	
	/**
	 *
	 * @param int $projectPK
	 */
	public function setProjectPK($projectPK) {
		$this->_ProjectPK = $projectPK;
	}
	
	/**
	 * @return int
	 */
	public function getUserPK() {
		return $this->_UserPK;
	}
	
	/**
	 *
	 * @param int $userPK
	 */
	public function setUserPK($userPK) {
		$this->_UserPK = $userPK;
	}
	
	
	
	/**
	 * @return int
	 */
	public function getRole() {
		return $this->_Role;
	}
	
	/**
	 *
	 * @param int $_role
	 */
	public function setRole($role) {
		$this->_Role = $role;
	}
}